﻿namespace ZechatApp.Models;

public record WxResponse<T>
{
    public T? Data { get; init; }
    public string Errmsg { get; set; } = string.Empty;
    public int Errno { get; init; }
}

public record WxLoginStatus
{
   public int Status { get; init; } 
}

public record WxUser
{
    public string? Id;
    public string? Account;
    public string? Nickname;
    public string? AvatarUrl;
    public string? Nation;
    public string? Province;
    public string? City;
    public string? Mobile;

    /// 性别
    /// - 0 未设置
    /// - 1 男
    /// - 2 女
    public uint Gender;

    /// 登录设备
    public string? Device;

    /// 缓存目录
    public string? CacheDir;
}

public class WxSendTextMessage
{
   public string Msg { get; init; }
   public int Type { get; init; }
   public string WxId { get; init; }
}